import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'
import creatPersistedState from 'vuex-persistedstate'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    
  },
  plugins: [
    creatPersistedState({
      key: 'hm-vuex-token',
      storage: window.sessionStorage,
      paths: ['user.token']
    })
  ],
  modules: {
    user
  },
  getters: {
  },
  mutations: {
  },
  actions: {
  },
 
})
